﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Api.Ordering.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class ValuesController : ControllerBase
    {
        [HttpGet]
        public IEnumerable<string> Get()
        {
            return new string[] { "Api.Ordering1", "Api.Ordering2", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")};
        }

        [HttpGet("{id}")]
        public IActionResult Get(int id)
        {
            return new JsonResult(new { id = 6001, name = "Ordering" });
        }
    }
}
